function template(id, data) {
	var str = document.getElementById(id).innerHTML
	//str = str.replace(/{{\s*([a-zA-Z]+)\s*}}/g, (msg, i) => data[i])
	//  rest参数
	str = str.replace(/{{\s*([a-zA-Z]+)\s*}}/g, (...args) => data[args[1]])
	return str
}
